package mall.kotlin.com.kotlinlearn.test;

public  class JavaA {
    private int b;

    public int getB() {
        System.out.println("some one tries get b");
        return b;
    }

    public void setB(int b) {
        System.out.println("some one tries set b");
        this.b = b;
    }

    //访问权限的控制
//    protected void setB(int b) {
//        System.out.println("some one tries set b");
//        this.b = b;
//    }
//    public int getSum() {
//       return sum(a=1, 3);
//    };

    public int sum(int a, int b) {
        return a + b;
    }

}

